<%@page import="helpers.StringHelper"%>
<%@page import="java.util.List"%>
<%@page import="entities.Domain"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="java.util.TreeMap"%>
<%
Domain domain = (Domain) request.getAttribute("domain");
List<String> domains = domain.getOutlink();

//Set content for seo
String title = domain.getDomain() + " - External links";
String description = domain.getDomain() + " has many inlink form other site as: " + StringHelper.listToString(domains, ", ", 5);
String keywords = domain.getDomain() + ", outlink, external link, web site analysis, website traffic details, server information, website ranking info, check information my domain" ;
String url = UrlHelper.getServerUrl(request) + "/outlink/" + domain.getDomain();
%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="keywords" value="<%=keywords %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>
	
                <div id="leftSideContent">
                	<section class="block">
                    	<div class="blockContent">
                            <h3 class="blockHeading"><span>External links for <%=domain.getDomain() %></span></h3>
                            <div class="clearafter">
                            	<div class="form-input">
	                            	<h3 class="title">External links on site <%=domain.getDomain() %> :</h3>
                                    <div class="gridLayout gridLayout3 clearafter">
                                    	
                                    	<div class="gridCol">
                                            <ul>
                                            	<% for (int i = 0; i < domains.size(); i=i+3) { %>
												<li>
													<a href="/info/<%=domains.get(i) %>" alt="<%=domains.get(i) %>" title="<%=domains.get(i) %>"><%=domains.get(i) %></a>
												</li>
												<% } %>
											</ul>
                                        </div>
                                        <div class="gridCol">
                                            <ul>
												<% for (int i = 1; i < domains.size(); i=i+3) { %>
												<li>
													<a href="/info/<%=domains.get(i) %>" alt="<%=domains.get(i) %>" title="<%=domains.get(i) %>"><%=domains.get(i) %></a>
												</li>
												<% } %>
											</ul>
                                        </div>
                                        <div class="gridCol lastCol">
                                            <ul>
												<% for (int i = 2; i < domains.size(); i=i+3) { %>
												<li>
													<a href="/info/<%=domains.get(i) %>" alt="<%=domains.get(i) %>" title="<%=domains.get(i) %>"><%=domains.get(i) %></a>
												</li>
												<% } %>
											</ul>
                                        </div>
                                    </div>
	                            </div>
                            </div>
                        </div>
                        <div class="blockShadow"></div>
                    </section>            
                    
                    <!-- ADV -->
                	<section class="block adv-detail">
                    	<div class="blockContent clearafter">
                    		<div class="clearafter">
                    			<div class="left">
	                    			<script type="text/javascript"><!--
									google_ad_client = "ca-pub-2883566427648799";
									/* epufloor_336x280 */
									google_ad_slot = "6977110282";
									google_ad_width = 336;
									google_ad_height = 280;
									//-->
									</script>
									<script type="text/javascript"
									src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
									</script>
	                    		</div>
	                    		<div class="right">
	                    			<script type="text/javascript"><!--
									google_ad_client = "ca-pub-2883566427648799";
									/* epufloor_336x280 */
									google_ad_slot = "6977110282";
									google_ad_width = 336;
									google_ad_height = 280;
									//-->
									</script>
									<script type="text/javascript"
									src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
									</script>
	                    		</div>
                    		</div>                    		
                    	</div>
                    	<div class="blockShadow"></div>
                    </section>
                	<!-- END ADV -->	    	
                </div>
                
                <!-- right content -->
                <jsp:include page="/elements/right.jsp" />
                <!-- end right content -->
                
<jsp:include page="/layouts/footer.jsp" />